import request from "@/utils/request";

const baseUrl = '/portal/subSystem';

export function getSubSystemList() {
    return request({
        url: `${baseUrl}/list`,
        method: 'GET',
    });
}
export function add(data: SubSystemList) {
    return request({
        url: `${baseUrl}`,
        method: 'POST',
        data,
    });
}

export function update(data: SubSystemList) {
    return request({
        url: `${baseUrl}`,
        method: 'PUT',
        data,
    });
}

export function deleteById(id: string) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'DELETE',
    });
}
